import React from 'react';
import ReactDOM from 'react-dom/client';
import {RouterProvider} from "react-router-dom";
import {Provider} from "react-redux";
import zhCN from 'antd/locale/zh_CN';
import routes from "./router";
import store from "@/store";
import "nprogress/nprogress.css"
import "./styles/reset.scss"
import {ConfigProvider} from "antd";

const root: ReactDOM.Root = ReactDOM.createRoot(
    document.getElementById('root') as HTMLElement
);

root.render(
   <ConfigProvider locale={zhCN}>
       <Provider store={store}>
           <RouterProvider router={routes}></RouterProvider>
       </Provider>
   </ConfigProvider>
);

